package org.jeecg.modules.demo.manage.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 物料管理
 * @Author: jeecg-boot
 * @Date:   2024-11-24
 * @Version: V1.0
 */
@Data
@TableName("dz_material_spu")
@ApiModel(value="dz_material_spu对象", description="物料管理")
public class DzMaterialSpu implements Serializable {
    private static final long serialVersionUID = 1L;

	/**ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;
	/**物料名称*/
    @Excel(name = "物料名称", width = 15)
    @ApiModelProperty(value = "物料名称")
    private String name;
	/**品牌*/
    @Excel(name = "品牌", width = 15, dictTable = "dz_brand", dicText = "name", dicCode = "id")
    @Dict(dictTable = "dz_brand", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "品牌")
    private String brandId;
	/**选材*/
    @Excel(name = "选材", width = 15, dictTable = "dz_choose_item", dicText = "name", dicCode = "id")
    @Dict(dictTable = "dz_choose_item", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "选材")
    private String chooseItemId;
	/**成品*/
    @Excel(name = "成品", width = 15, dictTable = "dz_category", dicText = "name", dicCode = "id")
    @Dict(dictTable = "dz_category", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "成品")
    private String categoryId;
	/**商品详情*/
    @Excel(name = "商品详情", width = 15)
    @ApiModelProperty(value = "商品详情")
    private String detailHtml;
	/**所属供应商*/
    @Excel(name = "所属供应商", width = 15, dictTable = "dz_supplier", dicText = "name", dicCode = "id")
    @Dict(dictTable = "dz_supplier", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "所属供应商")
    private String supplierId;
	/**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**序号*/
    @Excel(name = "序号", width = 15)
    @ApiModelProperty(value = "序号")
    private Integer orderNo;
	/**是否删除*/
    @Excel(name = "是否删除", width = 15)
    @ApiModelProperty(value = "是否删除")
    private Integer isDeleted;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
